<?php
include ("inc/header.php");
?>
<!--main start-->
<div class="main">
	<div class="main_flash"><img src="temp/flash.jpg" /></div>
	<div class="main_content">
		<!--main_left Start-->
		<div class="main_left">
			<!--block start-->
			<div class="main_left_title">video
				<div class="tip"></div>
			</div>
			<div class="main_left_video">
				<?
				 $sql="SELECT * FROM video where firstshow=1 order by id desc limit 1";
				 $result=mysql_query($sql) or die(mysql_error());
				 while ($rs=mysql_fetch_array($result)){
				?>
				<div class="main_left_video_top">
					<a href="movie_detail.php?id=<?=$rs["id"]?>"><img src="<?=$rs["imagepath"]?>" width="248" height="186" border=0/></a>
					<p><?=substr($rs["title"],10)?></p>	
				</div>
				<?}?>
				
				
				<div class="main_left_video_list">
					<ul>
						<?
						 $sql="SELECT * FROM video where firstshow=1 order by id desc limit 2,2";
						 $result=mysql_query($sql) or die(mysql_error());
						 while ($rs=mysql_fetch_array($result)){
						?>
						<li><a href="movie_detail.php?id=<?=$rs["id"]?>"><img src="<?=$rs["imagepath"]?>" width="127" height="70" border=0/></a>
						<p><?=substr($rs["title"],10)?></p></li>
						<?}?>
					</ul>
				</div>
		
				
				<div class="main_left_list">
					<ul>
						<?
						  $sql="SELECT * FROM video where firstshow=0 order by id desc limit 4";
						 $result=mysql_query($sql) or die(mysql_error());
						 $index=1;
						 while ($rs=mysql_fetch_array($result)){
						?>
						<li><a href="movie_detail.php?id=<?=$rs["id"]?>"><?=substr($rs["title"],10)?></a></li>
						<?}?>
					</ul>
				</div>
				<div class="main_left_video_bottom"><a href="movie.php">View all</a></div>
			</div>
			<!--block end-->
			<!--block start-->
			<div class="line"></div>
			<div class="main_left_title">Tea shop
				<div class="tip"></div>
			</div>
			<div class="main_left_news">
				<ul>
					<li>
						<img src="temp/news.jpg" />
						<p><span>Organic Whole Leaf Dragon Well Green Tea</span><br />
							Organic Dargon Well Tea is form Tianmu ,where is 1507 meters above sea level...<br />
							<a href="#">Buy now --></a>
						</p>
					</li>
					<li>
						<img src="temp/news.jpg" />
						<p><span>Organic Whole Leaf Dragon Well Green Tea</span><br />
							Organic Dargon Well Tea is form Tianmu ,where is 1507 meters above sea level...<br />
							<a href="#">Buy now --></a>
						</p>
					</li>
					<li>
						<img src="temp/news.jpg" />
						<p><span>Organic Whole Leaf Dragon Well Green Tea</span><br />
							Organic Dargon Well Tea is form Tianmu ,where is 1507 meters above sea level...<br />
							<a href="#">Buy now --></a>
						</p>
					</li>
				</ul>
				<div class="main_left_video_bottom"><a href="#">View all</a></div>
			</div>
			<!--block end-->
			<!--block start-->
			<div class="line"></div>
			<div class="main_left_title">Newsletter
				<div class="tip"></div>
			</div>
			<div class="main_left_newsletter">
				<div class="main_left_newsletter_text">Join our news alert service and never miss a trick.</div>
				<table cellpadding="0" cellspacing="0" class="addTable">
					
					<tr>
						<td class="title">Your name</td>
						<td class="content"><input type="text" name="" class="add_input"  /></td>
					</tr>
					<tr>
						<td class="title">Email</td>
						<td class="content"><input type="text" name="" class="add_input"  /></td>
					</tr>
					<tr>
						<td align="right" colspan="2"><input type="button" value="Submit" class="sub_button" /></td>
					</tr>
				</table>
			</div>
			<!--block end -->
		</div>
		<!--main_left end -->
		
		<!--main_center start-->
		<div class="main_center">
			<!--block start-->
			<div class="main_left_title">News
				<div class="tip"></div>
			</div>
			<div class="main_left_product">
				<ul class="top">
					<li><img src="temp/news.jpg" />
						<p><span>Organic Whole Leaf Dragon Well Green Tea</span><br />
							Organic Dargon Well Tea is form Tianmu ,where is 1507 meters above sea level...<br />
							
						</p>
					</li>
					<li><img src="temp/news.jpg" />
						<p><span>Organic Whole Leaf Dragon Well Green Tea</span><br />
							Organic Dargon Well Tea is form Tianmu ,where is 1507 meters above sea level...<br />
							
						</p>
					</li>
					<li><img src="temp/news.jpg" />
						<p><span>Organic Whole Leaf Dragon Well Green Tea</span><br />
							Organic Dargon Well Tea is form Tianmu ,where is 1507 meters above sea level...<br />
							
						</p>
					</li>
				</ul>
				<ul class="bottom">
					<li><p><a href="#">Three terrific tea places wre presented width Top Tea.</a></p><span>2-35</span></li>
					<li><p><a href="#">Three terrific tea places wre presented width Top Tea.</a></p><span>2-35</span></li>
					<li><p><a href="#">Three terrific tea places wre presented width Top Tea.</a></p><span>2-35</span></li>
					<li><p><a href="#">Three terrific tea places wre presented width Top Tea.</a></p><span>2-35</span></li>
					<li><p><a href="#">Three terrific tea places wre presented width Top Tea.</a></p><span>2-35</span></li>
				</ul>
				<div class="main_left_video_bottom"><a href="#">View all</a></div>
			</div>
			<!--block end -->
			<!--block start-->
			<div class="line"></div>
			<div class="main_left_title">Odd box
				<div class="tip"></div>
			</div>
			<div class="main_left_odd">
				<div class="main_left_odd_content">
					<div class="main_left_odd_content_title">Tea Party : private afternoon tea parties</div>
					<div class="main_left_odd_content_content">
						-Tea Party offers private afternoon tea parties in their gorgeous tea room. Suitable for birthday teas,hen parties,body showers,Sweet 16,pre-wedding teas and all manner of splendid occasions!
					</div>
					<div class="main_left_video_bottom"><a href="#">Keep reading --></a></div>
				</div>
				<ul class="bottom">
					<li><p><a href="#">Three terrific tea places wre presented width Top Tea.</a></p><span>2-35</span></li>
					<li><p><a href="#">Three terrific tea places wre presented width Top Tea.</a></p><span>2-35</span></li>
					<li><p><a href="#">Three terrific tea places wre presented width Top Tea.</a></p><span>2-35</span></li>
					<li><p><a href="#">Three terrific tea places wre presented width Top Tea.</a></p><span>2-35</span></li>
					<li><p><a href="#">Three terrific tea places wre presented width Top Tea.</a></p><span>2-35</span></li>
					<li><p><a href="#">Three terrific tea places wre presented width Top Tea.</a></p><span>2-35</span></li>
				</ul>
				<div class="main_left_video_bottom"><a href="#">View all</a></div>
			</div>
			
			<!--block end-->
		</div>
		<!--main_center end-->
		<!--main_right start-->
			<div class="main_right_top">
				<?
				 $sql="SELECT * FROM blog where pic <> '' order by id desc limit 1";
				 $result=mysql_query($sql) or die(mysql_error());
				while ($rs=mysql_fetch_array($result)){
				?>
				<div class="main_right_top_title"><a href="blog_detail.php?id=<?=$rs["id"]?>"><?=substr($rs["title"],10)?></a></div>
				<img src="<?=$rs["pic"]?>" width="295" height="95"/>
				<?}?>
				<ul class="bottom">
					<?
					 $sql="SELECT * FROM blog order by id desc limit 5";
					 $result=mysql_query($sql) or die(mysql_error());
					while ($rs=mysql_fetch_array($result)){
					?>
					<li><p><a href="blog_detail.php?id=<?=$rs["id"]?>"><?=substr($rs["title"],10)?></a></p><span><?=$rs["operater"]?></span></li>
					<?
					}
					?>
				</ul>
				<div class="main_left_video_bottom"><a href="blog.php">View all</a></div>
			</div>
			<!--block end -->
			<!--block start-->
			<div class="line"></div>
			<div class="main_left_title">Gallery
				<div class="tip"></div>
			</div>
			<div class="main_right_middle">
				<ul>
					<?
					 $sql="SELECT * FROM pic order by id desc limit 9";
					 $result=mysql_query($sql) or die(mysql_error());
					while ($rs1=mysql_fetch_array($result)){
					?>
						<li><a href="pic_detail.php?id=<?=$rs1["id"]?>"><img src="<?=$rs1["text"]?>" width="90" height="90"/></a></li>
					<?
					}
					?>
				</ul>
				<div class="main_left_video_bottom"><a href="pic.php">View all</a>&nbsp;&nbsp;&nbsp;<a href="#">Send you pictrue --></a></div>
			</div>
			<!--block end -->
			<!--block start-->
			<div class="line"></div>
			<div class="main_left_title">Tea & Health
				<div class="tip"></div>
			</div>
			<div class="main_right_bottom">
				<img src="temp/person.jpg" /><p><span>Professor Jeya Henry</span> <br />The Tea Advisory Panel is an expert panel which can:</p>
				<div class="content">Tea Party offers private afternoon tea parties in their gorgeous tea room. Suitable for birthday teas,hen parties,body showers,Sweet 16,pre-wedding teas and all manner of splendid occasions! uitable for birthday teas,hen parties,body showers,Sweet 16,pre-wedding teas and all manner of splendid occasions!</div>
				<div class="main_left_video_bottom"><a href="#">Keep reading --></a></div>
			</div>
			<!--block end -->
		</div>
		<!--main_right end-->
		<div style="clear:both;"></div>
	</div>
	
	<!--footer start-->
	<?php
		include ("inc/footer.php");
		?>
	<!--footer end-->
</div>
<!--main end-->

</body>
</html>
